INST_DIR := $(DESTDIR)/usr/lib/xen/boot
SUBDIRS :=
-SUBDIRS += rombios rombios/32bit
+SUBDIRS += rombios
SUBDIRS += vgabios
SUBDIRS += extboot
#SUBDIRS += etherboot
echo "(visit http://www.cix.co.uk/~mayday for more information)"; \
echo "***********************************************************"; \
else \
- for subdir in $(SUBDIRS); do \
- $(MAKE) -C $$subdir $@; \
- done; \
+ $(MAKE) subdirs-$@; \
fi
[ ! -e $(TARGET) ] || $(INSTALL_DATA) $(TARGET) $(INST_DIR)
.PHONY: clean
-clean:
- @set -e; for subdir in $(SUBDIRS); do \
- $(MAKE) -C $$subdir $@; \
- done
+clean: subdirs-clean
CFLAGS :=
include $(XEN_ROOT)/tools/Rules.mk
+SUBDIRS := acpi
+
# The HVM loader is started in 32-bit mode at the address below:
LOADADDR = 0x100000
OBJS = $(patsubst %.c,%.o,$(SRCS))
.PHONY: all
-all: hvmloader
+all: subdirs-all hvmloader
hvmloader: roms.h acpi/acpi.a $(SRCS)
$(CC) $(CFLAGS) -c $(SRCS)
$(OBJCOPY) hvmloader.tmp hvmloader
rm -f hvmloader.tmp
-.PHONY: acpi/acpi.a
-acpi/acpi.a:
- $(MAKE) -C acpi
-
roms.h: ../rombios/BIOS-bochs-latest ../vgabios/VGABIOS-lgpl-latest.bin ../vgabios/VGABIOS-lgpl-latest.cirrus.bin ../etherboot/eb-roms.h ../extboot/extboot.bin
sh ./mkhex rombios ../rombios/BIOS-bochs-latest > roms.h
sh ./mkhex vgabios_stdvga ../vgabios/VGABIOS-lgpl-latest.bin >> roms.h
sh ./mkhex extboot ../extboot/extboot.bin >> roms.h
.PHONY: clean
-clean:
+clean: subdirs-clean
rm -f roms.h acpi.h
rm -f hvmloader hvmloader.tmp *.o
- $(MAKE) -C acpi clean
.PHONY: all subdirs clean
-subdirs:
- @set -e; for subdir in $(SUBDIRS); do \
- $(MAKE) -C $$subdir all; \
- done;
+all: subdirs-all $(TARGET)
-all: $(TARGET)
-
-clean:
+clean: subdirs-clean
rm -rf *.o $(TARGET)
- @for subdir in $(SUBDIRS); do \
- $(MAKE) -C $$subdir $@; \
- done;
-$(TARGET): subdirs 32bitbios.o util.o
+$(TARGET): 32bitbios.o util.o
$(LD) $(LDFLAGS_DIRECT) -s -r 32bitbios.o $(MODULES) util.o -o 32bitbios_all.o
@nm 32bitbios_all.o | \
egrep '^ +U ' >/dev/null && { \
+XEN_ROOT = ../../..
+include $(XEN_ROOT)/tools/Rules.mk
+
+SUBDIRS := 32bit
.PHONY: all
-all: bios
+all: subdirs-all bios
.PHONY: bios
bios: biossums BIOS-bochs-latest
.PHONY: clean
-clean:
+clean: subdirs-clean
rm -f *.o *.a *.s rombios.bin _rombios*_.c
rm -f as86-sym.txt ld86-sym.txt
rm -f rombios*.txt rombios*.sym usage biossums